package com.chenjim.architecture.screen

import androidx.compose.runtime.Composable
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.chenjim.architecture.screen.home.HomeScreen
import com.chenjim.architecture.screen.login.LoginScreen
import com.chenjim.architecture.screen.shimme.ShimmerScreen


enum class Screen(val route: String) {
    Splash("splash"),
    Login("Login"),
    Home("Home"),
    HistoryOrder("HistoryOrder"),
    Recharge("Recharge"),
    Shimmer("Shimmer"),
    About("About"),
}

@Composable
fun AppNavGraph() {
    val navController = rememberNavController()

    NavHost(navController = navController, startDestination = Screen.Splash.route) {
        composable(route = Screen.Splash.route) {
            SplashScreen(navController)
        }
        composable(route = Screen.Login.route) {
            LoginScreen(navController)
        }
        composable(route = Screen.Home.route) {
            HomeScreen(navController)
        }
        composable(route = Screen.HistoryOrder.route) {
            HistoryOrderScreen(navController)
        }
        composable(route = Screen.Recharge.route) {
            OnlineRechargeScreen(navController)
        }
        composable(route = Screen.Shimmer.route) {
            ShimmerScreen(navController)
        }
        composable(route = Screen.About.route) {
            AboutScreen(navController)
        }
    }
}